package com.example.order.openFeign;

import com.example.vo.UserVIO;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "shopuser")
public interface UserOpenFeign {

    @PostMapping("/users/getusercountdetails/{userID}")
    public UserVIO getusercountdetails(@PathVariable Long userID);

    @PostMapping("/users/cutmoney")
    public boolean cutmoneyByUserId(@RequestBody UserVIO userVIO);
}
